package Demo1;
public class Dog extends Animer implements iSwim,iRun{
    public Dog(String name) {
        super(name);
    }
    @Override
    public void eat() {
        System.out.println(this.name+"正在吃狗粮");
    }
    @Override
    public void swim() {
        System.out.println(this.name+"正在游泳");
    }
    @Override
    public void iRun() {
        System.out.println(this.name+"跑");
    }
}
